<?php

require 'workflowConverterClass.php';

/*// Getting frontend value*/
$postData = file_get_contents('personal.json');
//$postdata = file_get_contents("php://input");
// Convert frondend json file to backend json file
$workFlow = WorkFlowConverter::ToBackEnd($postData);
// saving backend json file
file_put_contents('app/config/workflow/personal.json',$workFlow);
/*echo '<pre>';
echo $workFlow;  
echo '</pre>';*/

$getData = file_get_contents('app/config/workflow/personal.json');
$workFlowBackToFront = WorkFlowConverter::ToFrontEnd($getData);
echo $workFlowBackToFront;  


?>